<%@ taglib prefix="s" uri="/struts-tags"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="basestyle.css">
<title>JSP Page</title>
</head>
<body id="layout">

	<div id="bodyheader">Create/Edit Client</div>
	<br></br>

	<div id="bodystyle"><s:actionerror /> 
	<s:form action="createClient" method="post">
		<s:textfield name="userId" label="User ID" readonly="true"/>
		<s:textfield name="clientId" label="Client ID" readonly="true"/>
		<s:textfield name="clientName" label="Cliet Name"/>
		<s:textfield name="username" label="Username (LoginID)"/>
		<s:textfield name="pswd" label="Login Password" />
		<s:textfield name="role" label="Role" readonly="true" value="%{role}"/>
		<s:if test="actionName=='editClient'">
			<s:submit name="actionName" value="Edit Client"></s:submit>
		</s:if>
		<s:if test="actionName=='createClient'">
			<s:submit name="actionName" value="Create Client"></s:submit>
		</s:if>
	</s:form>
	</div>

</body>
</html>